package com.mkz.jbpm.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.mkz.core.common.constant.ServiceNameConstants;
import com.mkz.core.common.util.ResponseResult;
import com.mkz.jbpm.feign.factory.ActiIdentityServiceFallbackFactory;

/**
 * Activiti6身份数据服务类
 *
 * @author KuangJianyu
 * @date 2020-03-26 15:58:06
 */
@FeignClient(contextId = "actiIdentityService", value = ServiceNameConstants.JBPM_SERVICE, fallbackFactory = ActiIdentityServiceFallbackFactory.class)
public interface ActiIdentityClient {
	
	//添加或修改用户组
	@PutMapping("/saveGroup")
	ResponseResult<Boolean> saveGroup(@RequestParam String roleCode, @RequestParam String roleName, @RequestParam String urrJson);
	
	//添加或修改用户
  	@PutMapping("/saveUser")
	public ResponseResult<Boolean> saveUser(@RequestParam String userId, @RequestParam String fullname);
}
